<h1>编辑课程名称</h1>

<% form_for :course, :url=>{:action => 'update', :id => @course} do |f| %>
  <%= f.error_messages %>
  <p>名称：<%= f.text_field :name %></p>
  <p>
    <%= f.submit '更新' %>
  </p>
<% end %>
<%= link_to '返回', :action => 'index' %>
